package uqbar.comm;

public class StringUtils {
	public static String fill(String string, final int size, final char character) {
		int initialLength = string.length();
		ProgramException.assertTrue("El contenido del string no puede ser superior al size. String: " + string
				+ " sixe:" + size, initialLength <= size);
		for (int i = 0; i < size - initialLength; i++) {
			string = character + string;
		}
		return string;
	}
}
